const mongoose = require("mongoose");
require("./studentsModel");
require("./testsModel");

const testedsSchema = new mongoose.Schema({
    score:Number,
    studentId:{  
        type: mongoose.Schema.Types.ObjectId,
        ref: 'studentsModel'
    },
    testId:{  
        type: mongoose.Schema.Types.ObjectId,
        ref: 'testsModel'
    }
});
mongoose.model('testedsModel', testedsSchema, 'testeds');